Skip to content

Eager Change Detection#32737

Merged
alan-agius4 merged 2 commits intoangular:mainfrom
alan-agius4:eager-change-detection
Mar 11, 2026
Merged

Eager Change Detection#32737
alan-agius4 merged 2 commits intoangular:mainfrom
alan-agius4:eager-change-detection

Conversation

@alan-agius4
Copy link
Collaborator

No description provided.

@alan-agius4 alan-agius4 requested a review from clydin March 10, 2026 14:46
@alan-agius4 alan-agius4 added the target: major This PR is targeted for the next major release label Mar 10, 2026
@alan-agius4 alan-agius4 added the action: review The PR is still awaiting reviews from at least one requested reviewer label Mar 10, 2026
….Default` with `Eager`

Updates the component schematic to use `ChangeDetectionStrategy.Eager` as
the default strategy and updates the allowed enum values in the schema,
as `ChangeDetectionStrategy.Default` is now deprecated.
@alan-agius4 alan-agius4 force-pushed the eager-change-detection branch from 9e37d7c to e2508f6 Compare March 10, 2026 15:16
…tectionStrategy.Eager`

`ChangeDetectionStrategy.Default` is deprecated. This update ensures the zoneless migration tool correctly identifies, handles, and prompts for the new `ChangeDetectionStrategy.Eager` strategy in component metadata.
@alan-agius4 alan-agius4 force-pushed the eager-change-detection branch from e2508f6 to 9ea5868 Compare March 10, 2026 15:46
},
"changeDetection": {
"description": "Configures the change detection strategy for the component.",
"enum": ["Default", "OnPush"],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we leave Default here until its removed on the framework side?

Copy link
Collaborator Author

@alan-agius4 alan-agius4 Mar 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed it, cause the FW already did a migration to move all apps from using Default to Eager.

@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Mar 11, 2026
@alan-agius4 alan-agius4 merged commit 93c3eb8 into angular:main Mar 11, 2026
36 checks passed
@alan-agius4
Copy link
Collaborator Author

This PR was merged into the repository. The changes were merged into the following branches:

@alan-agius4 alan-agius4 deleted the eager-change-detection branch March 11, 2026 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker area: @angular/cli area: @schematics/angular target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants